﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models
{
    [Serializable]
    public class Message
    {
        public virtual Guid id { get; set; }
        public virtual MessageType type { get; set; }
        public virtual string body { get; set; }
    }

    /// <summary>
    /// 消息类型
    /// </summary>
    public enum MessageType
    {
        /// <summary>
        /// 对公：0
        /// </summary>
        PUBLIC,
        /// <summary>
        /// 对组：1
        /// </summary>
        GROUP,
        /// <summary>
        /// 对私：2
        /// </summary>
        PRIVATE,
        /// <summary>
        /// 获取：3
        /// </summary>
        GET, 
        /// <summary>
        /// 修改：4
        /// </summary>
        PUT, 
        /// <summary>
        /// 添加：5
        /// </summary>
        POST, 
        /// <summary>
        /// 删除：6
        /// </summary>
        DELETE
    }
}
